package com.auto.survey.activity.monitoring.entity.relations

import androidx.room.Embedded
import androidx.room.Relation
import com.auto.survey.activity.monitoring.entity.ATS_AdjustmentResult
import com.auto.survey.activity.monitoring.entity.ATS_DeformationAnalysis
import com.auto.survey.activity.monitoring.entity.ATS_QualityControl

/**
 * 平差结果与质量控制、变形分析关联类
 * 用于获取平差结果及其关联的质量控制和变形分析数据
 */
data class AdjustmentWithQualityAndAnalysis(
    /**
     * 平差结果信息
     */
    @Embedded val adjustment: ATS_AdjustmentResult,
    /**
     * 平差结果关联的质量控制数据列表
     */
    @Relation(
        parentColumn = "adjustmentId",
        entityColumn = "adjustmentId"
    )
    val qualityControls: List<ATS_QualityControl>,
    /**
     * 平差结果关联的变形分析数据列表
     */
    @Relation(
        parentColumn = "adjustmentId",
        entityColumn = "adjustmentId"
    )
    val analyses: List<ATS_DeformationAnalysis>
)